package org.study.springboot.lambda;

import java.math.BigDecimal;


public class PayDetailToBabModel {
    private static final long serialVersionUID = -5197016274254913057L;
    private String productCode;
    private String productName;
    private Long money;
    private BigDecimal amount;
    private BigDecimal price;
    private Integer cityId;

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getCodeAndCityId() {
        if (money >= 0) {
            return  productCode+"_"+cityId;
        } else {
            return  "2"+productCode+"_"+cityId;
        }
    }


}
